﻿using LogionDemo.Common.Interfaces;
using LogionDemo.Common.UserEventArgs;

namespace LogionDemo.Models
{
	public class PropertyChangedObserver : ISimpleSubscriber<PropertyChangedEventArgs>
	{
		public void OnNext(PropertyChangedEventArgs args)
		{
			string auditLog = $"用户{args.UserToken.UserName}修改了{args.PropertyName},由{args.OldValue}变成{args.NewValue}，更改时间{DateTime.Now}";
			Console.WriteLine(auditLog);
		}
	}
}